<div class="zs-body" 
	data-ng-init="treeFormInit('menujurisdiction', {
		keyField:'id',
		randomFields:['id'],
		orderObject:{order:0},
		pageSize:12,
		maxNavs:4,
		treeNavs:[{pid:'0',n:'所有功能'}]
	}) && loadData('menujurisdiction');setConHei();">
    <div class="zs-map-tool">
        <div class="location">
            <a href="javascript:;">首页</a>
            <i class="right-arr"></i>
            <a href="javascript:;">运维管理</a>
            <i class="right-arr"></i>
            <a href="javascript:;">菜单功能注册</a>
        </div>
        <div class="option">
            <input type="button" class="zs-btn orange" value="新建" 
                ng-click="addTreeRow('menujurisdiction') && openWindow('edit');"/>
            <input type="button" class="zs-btn orange" value="编辑" 
                ng-click="editRow('menujurisdiction', menujurisdiction.sRows[0]) && openWindow('edit')"/>
            <input type="button" class="zs-btn orange" value="删除 "
                ng-click="delEntitys('menujurisdiction')"/>
        </div>
    </div>
    <div class="zs-content" style="position:unset">
        <div class="zs-nice-tab idTabs">
        	<div class="tool item" style="margin-left:6px;">
                <span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" placeholder="功能名称" class="zs-input" ng-model="menujurisdiction.queryObject['display:like']"/>
                </span>
            </div>
            <div class="operation item">
                <a class="ope-1" ng-click="loadData('menujurisdiction')"></a>
                <a class="ope-2"></a>
            </div>
            <div class="tool item" style="width: 380px">
        		<div class="zs-nav">
		    		<a ng-click="preNav('menujurisdiction')">返回上一级</a> | 
		    		<span ng-repeat="r in menujurisdiction.treeNavs">
		    			<a ng-click="indexNav('menujurisdiction',$index)">{{r.n}}</a> 
		    			<label ng-if="$index!=menujurisdiction.treeNavs.length-1"> > </label>
		    		</span>
		    	</div>
        	</div>
            <div class="switch">
            </div>
        </div>
        <div class="date-container">
            <div id="zpgwd">
                <div class="zs-data-table">
                    <div class="container">
                    	<table>
			                <thead>
			                    <tr>
			                        <th>
			                        	<input id="allCheckbox" type="checkbox"
			                        		ng-click="selectAll('menujurisdiction','allCheckbox');">
			                        </th>
			                        <th>序号</th>
			                        <th>功能名称</th>
			                        <th>功能标识</th>
			                        <th>所属应用系统</th>
			                        <th>是否有效/子节点</th>
			                        <th>备注</th>
			                    </tr>
			                </thead>
			                <tbody>
			                    <tr ng-repeat="r in menujurisdiction.datas">
					                <td><input type="checkbox"
						                    ng-click="selectRow('menujurisdiction',r);"
						                    ng-model="r.selected" />
					                </td>
					                <td>
					                    <a ng-click="!r.leaf && addNav('menujurisdiction',r.id,r.display,r)">
					                        <label ng-bind="r.order"></label>
					                    </a>
					                </td>
					                <td>
					                    <a ng-click="editRow('menujurisdiction',r) && openWindow('edit');">
					                        <label ng-bind="r.display"></label>
					                    </a>
					                </td>
					                <td>
					                    <a ng-click="editRow('menujurisdiction',r) && openWindow('edit');">
					                        <label ng-bind="r.code"></label>
					                    </a>
					                </td>
					                <td>
					                    <a ng-click="editRow('menujurisdiction',r) && openWindow('edit');">
					                        <label ng-bind="r.registerServiceName"></label>
					                    </a>
					                </td>
					                <td>
					                    <a ng-click="editRow('menujurisdiction',r) && openWindow('edit');">
					                        <label ng-bind="r.valid | asChineseBool"></label>
					                        /
					                        <label ng-bind="r.leaf | asChineseBool"></label>
					                    </a>
					                </td>
					                <td>
					                    <a ng-click="editRow('menujurisdiction',r) && openWindow('edit');">
					                        <label ng-bind="r.info"></label>
					                    </a>
					                </td>
					            </tr>
			                </tbody>
			            </table>
                    </div>
                </div>
                <div class="zs-pagination-box">
                    <ag-Page fn='menujurisdiction'></ag-Page>
                </div>
            </div>
        </div>

        <div ag-Window id="edit" title="菜单功能编辑" width='600px' height='250px'>
	        <div class="zs-form-tab ibox">
	        	<form name="form" novalidate>
				    <table width="100%">
				        <tbody>
				        	<tr ng-if="showRegisterService('menujurisdiction',menujurisdiction.editRow)">
				        		<td class="text" width="20%">所属应用系统</td>
		                        <td colspan="3" class="left" width="80%">
		                        	<!-- <ag-Combobox class="zs-input" style="width:458px;height:28px;"
		                        		fn='rs' para="{sn:'registerservice',
													defaultQueryObject:{valid:true},
													orderObject:{order:0}}"
				                        ng-model="menujurisdiction.editRow.registerService"
				                        text-Value="menujurisdiction.editRow.registerServiceName" /> -->
				                        
				                    <ag-Combobox class="zs-input" style="width:458px;height:28px;"
		                        		para="{uDictionary:true,dictionary:'p_register_service'}"
				                        ng-model="menujurisdiction.editRow.registerService"
				                        text-Value="menujurisdiction.editRow.registerServiceName" />
		                        </td>
				        	</tr>
				        	<tr ng-if="!showRegisterService('menujurisdiction',menujurisdiction.editRow)">
				        		<td class="text" width="20%" style="height:28px;"></td>
		                        <td colspan="3" class="left" width="80%" style="height:28px;">
		                        </td>
				        	</tr>
				        	<tr>
		                        <td class="text" width="20%">*功能名称</td>
		                        <td class="left" width="30%"><input type="text"
		                            ng-model="menujurisdiction.editRow.display"
		                            class="zs-input" required></td>
		                        <td class="text" width="20%">*功能标识</td>
		                        <td class="left" width="30%"><input type="text"
		                            ng-model="menujurisdiction.editRow.code"
		                            class="zs-input" required></td>
		                    </tr>
		                    <tr>
		                        <td class="text" width="20%">地址</td>
		                        <td colspan="3" class="left" width="80%">
		                        	<input type="text"
			                            ng-model="menujurisdiction.editRow.urls"
			                            class="zs-input" required />
		                        </td>
		                    </tr>
		                    <tr>
		                        <td class="text" width="20%"></td>
		                        <td class="left" width="30%">
		                        	<input type="checkbox" ng-model="menujurisdiction.editRow.valid"
		                        		ng-true-value="true" ng-false-value="false" value='false' />
		                        	有效 
		                        	<input type="checkbox" ng-model="menujurisdiction.editRow.leaf"
		                        		ng-true-value="true" ng-false-value="false" value='false' />
		                        	子节点
		                        </td>
		                        <td class="text" width="20%">排序</td>
		                        <td class="left" width="30%"><input type="text"
		                            class="zs-input" ng-model="menujurisdiction.editRow.order">
		                        </td>
		                    </tr>
		                    <tr>
		                        <td class="text" width="20%">描述</td>
		                        <td colspan="3" class="left" width="80%"><input type="text"
		                            class="zs-input" ng-model="menujurisdiction.editRow.info"></td>
		                    </tr>
				        </tbody>
				        <tfoot>
				            <tr>
				                <td colspan="4">
				                    <input type="button" name="ok" value="保存" class="zs-btn c-red"
				                    	ng-click="formValidate(form) && save('menujurisdiction', menujurisdiction.editRow, saveCloseWindow)"/>
				                    <input type="button" name="ok" value="取消" class="zs-btn c-green" 
				                    	ng-click="closeWindow('edit')" />
				                </td>
				            </tr>
				        </tfoot>
				    </table>
				</form>
			</div>
	    </div>
    </div>
</div>